<?php


	require_once("fta.201003310000/fta.php");	
	fta_registerModules(
		array(
			"FTAORM/FTAORM",
			'FTAORM/_FTAORMCMSContentMetadata'
		)
	);
	
	class FTAORMCMSContentMetadata extends _FTAORMCMSContentMetadata {
		
		function __construct(Zend_Db_Adapter_Abstract $zdb){
			parent::__construct($zdb);
			$this->setDefaults();
		}
		
		
		function setDefaults(){
			parent::setDefaults();
			$this->publishstartdate = '1970-01-01 00:00:00';
			$this->publishenddate = '2038-01-19 03:14:07';
			$this->dateadded = date('Y-m-d H:i:s');
			$this->datemodified = date('Y-m-d H:i:s');
			$this->addedbyuser = 0;
			// add other things here.			
		}

		
		function save($newPrimaryKey = null){
			$this->datemodified = date('Y-m-d H:i:s');
			return parent::save($newPrimaryKey);
		}
	}

?>